<?php $errorMsg="";if(!$filenames=filter_input(INPUT_POST,'filename',FILTER_UNSAFE_RAW,['flags'=>FILTER_FORCE_ARRAY])){$errorMsg='错误的文件名';}else{$archive=new Zmsun\System\Template\TemplatePackageArchive();$archive->del($filenames);}echo json_encode(['status'=>$errorMsg ?'error':'ok','info'=>$errorMsg]);?>